package com.ruoyi.pms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品列表对象 pms_goods
 * 
 * @author yf
 * @date 2022-02-20
 */
public class PmsGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private Long modifyBy;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 产品简介 */
    @Excel(name = "产品简介")
    private String descript;

    /** 产品详情 */
    @Excel(name = "产品详情")
    private String detail;

    /** 大图相册列表,以逗号分隔 */
    @Excel(name = "大图相册列表,以逗号分隔")
    private String gallery;

    /** 类别id */
    @Excel(name = "类别id")
    private Long idCategory;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 是否人气商品 */
    @Excel(name = "是否人气商品")
    private Integer isHot;

    /** 是否新品推荐 */
    @Excel(name = "是否新品推荐")
    private Integer isNew;

    /** 是否上架 */
    @Excel(name = "是否上架")
    private Integer isOnSale;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long likeNum;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 小图 */
    @Excel(name = "小图")
    private String pic;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stock;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModifyBy(Long modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public Long getModifyBy() 
    {
        return modifyBy;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setDescript(String descript) 
    {
        this.descript = descript;
    }

    public String getDescript() 
    {
        return descript;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setGallery(String gallery) 
    {
        this.gallery = gallery;
    }

    public String getGallery() 
    {
        return gallery;
    }
    public void setIdCategory(Long idCategory) 
    {
        this.idCategory = idCategory;
    }

    public Long getIdCategory() 
    {
        return idCategory;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }
    public void setIsNew(Integer isNew) 
    {
        this.isNew = isNew;
    }

    public Integer getIsNew() 
    {
        return isNew;
    }
    public void setIsOnSale(Integer isOnSale) 
    {
        this.isOnSale = isOnSale;
    }

    public Integer getIsOnSale() 
    {
        return isOnSale;
    }
    public void setLikeNum(Long likeNum) 
    {
        this.likeNum = likeNum;
    }

    public Long getLikeNum() 
    {
        return likeNum;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("modifyBy", getModifyBy())
            .append("modifyTime", getModifyTime())
            .append("descript", getDescript())
            .append("detail", getDetail())
            .append("gallery", getGallery())
            .append("idCategory", getIdCategory())
            .append("isDelete", getIsDelete())
            .append("isHot", getIsHot())
            .append("isNew", getIsNew())
            .append("isOnSale", getIsOnSale())
            .append("likeNum", getLikeNum())
            .append("name", getName())
            .append("pic", getPic())
            .append("price", getPrice())
            .append("stock", getStock())
            .toString();
    }
}
